﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using SelfMadeMillionaire.Core;
using SelfMadeMillionaire.Core.Entities;
using SelfMadeMillionaire.Core.Enums;
using SelfMadeMillionaire.Core.Repositories;
using SelfMadeMillionaire.Core.Services;
using SelfMadeMillionaire.Core.Specifications;

namespace SelfMadeMillionaire.BLL.Services
{
	public class UserSymbolService : IUserSymbolService
	{
		private readonly IUserSymbolRepository _symbolRepository;

        public UserSymbolService(IUserSymbolRepository symbolRepository)
		{
			_symbolRepository = symbolRepository;
		}

        public IEnumerable<UserSymbol> GetAll()
        {
            return _symbolRepository.GetAll();
        }

        public UserSymbol Add(UserSymbol item)
		{
            return _symbolRepository.Add(item);
		}

        public UserSymbol Update(UserSymbol item)
		{
            return _symbolRepository.Update(item);
		}

        public UserSymbol Get(int id)
		{
			return _symbolRepository.Get(id);
		}
        
		public void Remove(int id)
		{
            _symbolRepository.Remove(id);
		}
	}
}